import { ProForm } from "@ant-design/pro-components";
import { Col } from "antd";
import CodeEditor from "../codemirror/CodeEditor";


const ProFormCode = (props) => {
  let { colProps = {}, fieldProps = {}, ...itemProps } = props
  return (
    <Col span={24} {...colProps}>
      <ProForm.Item {...itemProps}>
        <CodeEditor {...fieldProps} />
      </ProForm.Item>
    </Col>
  );
};

export default ProFormCode;